<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<span style="font-size:18px;">
<html>
<head>
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <link rel="stylesheet" type="text/css" href="purchase/css/bootstrap.min.css" />
     <link rel="stylesheet" type="text/css" href="purchase/css/commonly-used-show.css" />
     <script type="text/javascript" src="purchase/js/jquery.min.js" ></script>
     <script type="text/javascript" src="purchase/js/bootstrap.js" ></script>
     <script type="text/javascript" src="purchase/js/mydate.js" ></script>
     <script type="text/javascript" src="purchase/js/jquery.cookie.js"></script>

    <!--  日历插件 -->
    <link rel="stylesheet" type="text/css" href="purchase/css/simple-calendar.css">
    <script type="text/javascript" src="purchase/js/simple-calendar.js"></script>


    <title>首页</title>

</head>

<body class="mybody">

 <jsp:include page="theTopMenuUser.jsp" />


<div class="container-fluid">
    <div class="row">
        <div class="col-md-2">
            <div class="text-center" id="left-content">
                <div class="list-group">
                    <a href="${pageContext.request.contextPath}/user" class="list-group-item active">首页</a>
                </div>
                <div class="list-group">
                    <a href="${pageContext.request.contextPath}/addSupplier?id=1" class="list-group-item">添加供货商</a>
                    <a href="${pageContext.request.contextPath}/addWarehouse?id=1" class="list-group-item">添加仓库</a>
                    <a href="${pageContext.request.contextPath}/addStorage?id=1" class="list-group-item">添加入库</a>
                     <a href="${pageContext.request.contextPath}/addDelivery?id=1" class="list-group-item">添加出库</a>
                     <a href="${pageContext.request.contextPath}/addSales?id=1" class="list-group-item">添加商品销售</a>
                </div>
                <div class="list-group">
                    <a href="#" class="list-group-item">关于</a>
                    <a href="${pageContext.request.contextPath}/assistance" class="list-group-item">留言联系</a>
                </div>
            </div>
        </div>

        <section class="content container-fluid">

             <div style="width: 70%; margin-top: 50px; margin-left: 7%;" id="calendar"></div>

        </section>

    </div>

</div>

<script type="text/javascript">
    var userdt = JSON.parse(sessionStorage.getItem("user"));
    if (userdt.result.userName != null){
        $("#usname").text(userdt.result.userName);
    }else {
        $("#usname").text(userdt.result.userLoginName);
    }

    var myCalendar = new SimpleCalendar("#calendar");

</script>

</body>
</html>
</span>